<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title> <?php echo DEFAULT_ADMIN_SECTION_TITLE; ?> </title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0">

		<!-- Le styles -->
		<link href="<?php echo base_url();?>css/bootstrap.css" rel="stylesheet">
		<link href="<?php echo base_url();?>css/admin.css" rel="stylesheet">
		
		
		<link href="<?php echo base_url();?>css/bootstrap-responsive.css" rel="stylesheet">

		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->

		<!-- Le fav and touch icons -->
		<link rel="shortcut icon" href="../assets/ico/favicon.ico">
		<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
		<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
		<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
		<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
	</head>

	<body>
<header>
	
	<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <a class="brand" href="#">Admin Blog</a>
        <div class="nav-collapse">
          <ul class="nav">
            
            <li class="dropdown <?php echo ($this->uri->segment(1)=='post' ) ? 'active':'' ?>">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Posts <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li>
                	<?php echo anchor('post/create','Add Post',array("id"=>"add_post"));?>
                	
                </li>
                <li class="divider"></li>
                <li>
                	
                	<?php echo anchor('post','Manage Posts',array("id"=>"manage_posts"));?>
                	
                </li>
              </ul>
            </li>
            
            
            <li class="dropdown <?php echo ($this->uri->segment(1)=='category') ? 'active':'' ?>">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Categories <b class="caret"></b></a>
              <ul class="dropdown-menu">
              
              <li>
                	<?php echo anchor('category/create','Add Category',array("id"=>"add_category"));?>
                	
                </li>
                <li class="divider"></li>
                <li>
                	
                	<?php echo anchor('category','Manage Categories',array("id"=>"manage_category"));?>
                	
                </li>
              
              
              </ul>
            </li>
            
            
              <li class="dropdown <?php echo ($this->uri->segment(1)=='user' || $this->uri->segment(1)=='' ) ? 'active':'' ?>">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Users <b class="caret"></b></a>
              <ul class="dropdown-menu">
              <li>
                	<?php echo anchor('user/create','Add User',array("id"=>"add_post"));?>
                	
                </li>
                <li class="divider"></li>
                <li>
                	
                	<?php echo anchor('user','Manage Users',array("id"=>"manage_user"));?>
                	
                </li>
              </ul>
            </li>           
          </ul>
         
          <ul class="nav pull-right">
            
            <li class="divider-vertical"></li>
            <li class="dropdown active">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $this -> session -> userdata('username'); ?> <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><?php echo anchor('home','Go to Website!'); ?></li>
                 <li class="divider"></li>
                <li><?php echo anchor('login/logout','Logout');?></li>
              </ul>
            </li>
          </ul>
        </div><!-- /.nav-collapse -->
      </div>
    </div><!-- /navbar-inner -->
  </div>
	
</header>

<div class="container" style="padding: 50px;">

